import { getMovies } from '@/api/movie';

import './list'
import { createmovieTag } from './list';
import { createPagers } from './pager';

async function init() {
    try {
        const resp = await getMovies(1, 30)
        createmovieTag(resp.data.movieList) //创建列表
        createPagers(1,30,resp.data.movieTotal)

    } catch (error) {
        throw error
    }
}

init()





